.spinner-props-control {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    width: 240px;
    padding: 8px 16px;

    font-size: 14px;
    font-style: normal;
    line-height: 16px;

    color: var(--text-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px 0 rgba(95, 105, 131, 0.1), 0 4px 24px 0 rgba(95, 105, 131, 0.04);
}

.spinner-color-props {
    position: absolute;
    top: 8px;
    right: calc(8px + 240px + 20px);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
    width: 200px;
    padding: 14px 16px;

    font-size: 14px;
    font-style: normal;
    line-height: 16px;

    color: var(--text-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px 0 rgba(95, 105, 131, 0.1), 0 4px 24px 0 rgba(95, 105, 131, 0.04);
}

.range-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    padding: 10px 0;
}

.range-control label {
    width: 60px;
}

.range-control input {
    flex-grow: 1;
}

.radio-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    padding: 12px 0;
    row-gap: 12px;
}

.radio-control label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.checkbox-control {
    padding: 12px 0;
}

.checkbox-control label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.color-control {
    padding: 10px 0;
}

.color-control label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.divider {
    width: 100%;
    height: 1px;

    background: rgba(92, 94, 102, 0.14);
}

input[type='range'] {
    height: 2px;

    cursor: pointer;

    outline: none;
    background: linear-gradient(to right, var(--color-primary) 100%, #f5f6f7 0%);
    -webkit-appearance: none;
    appearance: none;
}

input[type='range']::-webkit-slider-thumb {
    width: 16px;
    height: 16px;

    cursor: pointer;

    border: 2px solid var(--color-primary);
    border-radius: 50%;
    background-color: #fff;
    -webkit-appearance: none;
    appearance: none;
}

input[type='radio'] {
    position: relative;

    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;

    cursor: pointer;

    border: 2px solid #e8e8e9;
    border-radius: 50%;
    appearance: none;
}

input[type='radio']:checked {
    border: 5px solid var(--color-primary);
}

/* Create the inner dot */
input[type='radio']:checked::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;

    display: block;

    width: 6px;
    height: 6px;

    content: '';

    border-radius: 50%;
    background-color: #fff;

    transform: translate(-50%, -50%);
}

input[type='checkbox'] {
    position: relative; /* Position for the inner checkmark */

    width: 16px; /* Width of the checkbox */
    height: 16px; /* Height of the checkbox */
    margin: 0 8px 0 0; /* Margin */

    cursor: pointer; /* Show pointer cursor on hover */

    border: 2px solid #e8e8e9; /* Default border */
    border-radius: 3px; /* Optional: Slightly rounded corners */
    background-color: transparent; /* Default background */
    appearance: none; /* Remove default styling */
}

/* Style when checked */
input[type='checkbox']:checked {
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary);
}

/* Create a checkmark */
input[type='checkbox']:checked::after {
    position: absolute; /* Position it absolutely */
    z-index: 1;
    top: 1px;
    left: 3px;

    display: block; /* Make it a block element */

    width: 4px; /* Width of the checkmark */
    height: 6px; /* Height of the checkmark */

    content: ''; /* Required for pseudo-elements */

    border: solid #fff; /* Checkmark color */
    border-width: 0 2px 2px 0; /* Create a checkmark shape */

    transform: rotate(45deg);
}

input[type='color'] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    padding: 0;

    border: 1px solid #5c5e6624;
    border-radius: 4px;
    background-color: #fff;
    -webkit-appearance: none;
}

input[type='color']::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type='color']::-webkit-color-swatch {
    border: none;
}
